package all.com.jinyongqunxiax.component;

import android.view.View;
import android.widget.TextView;

import all.com.jinyongqunxiax.R;

public class JxFormHeader extends JxForm.AbstractHeaderViewModel {
    private String title;

    public JxFormHeader(int level, String title, JxForm.OnClickListener addButtonListener) {
        super(R.layout.jxform_header_item, level, addButtonListener);
        this.title = title;
    }


    @Override
    void bind(View view) {
        TextView textView = view.findViewById(R.id.form_header_titleView);
        textView.setText(this.title);
    }

    @Override
    int addButtonID() {
        return R.id.form_header_addButton;
    }

    @Override
    int intentViewID() {
        return R.id.form_header_guide_line;
    }
}
